<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		window.onload= function () {
			box = document.getElementById('box')
			btn = document.getElementById('btn')
			xbs = document.getElementById('xbs')

			aa = document.createElement('a');

			aa.innerHTML = "百度一下";

			aa.href = "http:://www.baidu.com";

			btn.onclick= function () {

				box.removeChild(xbs)

				// box.innerHTML =""
				
				// bb = aa.cloneNode(true);
				// // console.log(aa);

				// box.appendChild(bb);
			}
		}
	</script>
</head>
<body>
	<p id='box'>
		<a href="">百度一下</a>
		<span id="xbs">学并思777</span>
		<a href="">163</a>

	</p>
	<button id='btn'>增加</button>
</body>
</html>